/*************************************************************************
 Copyright (C) Unpublished Unis Software, Inc. All rights reserved.
 Unis Software, Inc., Confidential and Proprietary.

 This software is subject to copyright protection
 under the laws of the Public of China and other countries.

 Unless otherwise explicitly stated, this software is provided
 by Unis "AS IS".
 *************************************************************************/
package com.unis.service.phonebook;

import java.util.List;

import com.unis.model.BaseModel;
import com.unis.model.phonebook.Phonebook;

/**
 * @author Administrator (email:xxh@163.com)
 * @since 2013-01-31
 */
public interface PhonebookService {

    /****************************************
     * Insert a instace of Phonebook
     ****************************************/
    void insert(Phonebook phonebook) throws Exception;

    /****************************************
     * Insert instaces of Phonebook
     ****************************************/
    void batchInsert(Phonebook phonebook) throws Exception;

    /****************************************
     * Delete a instace of Phonebook
     ****************************************/
    void delete(Phonebook phonebook) throws Exception;

    /****************************************
     * Delete instaces of Phonebook
     ****************************************/
    void batchDelete(Phonebook phonebook) throws Exception;

    /****************************************
     * Update a instace of Phonebook
     ****************************************/
    void update(Phonebook phonebook) throws Exception;

    /****************************************
     * Query instaces of Phonebook
     ****************************************/
    List<BaseModel> queryAsList(Phonebook phonebook) throws Exception;

    /****************************************
     * Query a instaces of Phonebook
     ****************************************/
    BaseModel queryAsObject(Phonebook phonebook) throws Exception;
}
